const model = {
  key: "wxwork",
  name: "企业微信",
  group: "wechat",

  template: [
    {
      key: "base",
      name: "基础",
      input: {},
      output: {},
      url: "/api/libs/wxwork/base.js",
    },
  ],

  libs: [
    {
      key: "wxwork",
      name: "wxworkApi",
      href: "https://github.com/liwenyue/co-wxwork-api",
    },
  ],
  config: {
    corpid: {
      key: "corpid",
      value: "",
      description: "企业id",
      remark: "",
      required: true,
    },
    corpsecret: {
      key: "corpsecret",
      value: "",
      description: "应用的凭证密钥",
      remark: "",
      required: true,
    },
    aesKey: {
      key: "aesKey",
      value: "",
      description: "加密的AES KEY",
      remark: "",
      required: true,
    },
    token: {
      key: "token",
      value: "",
      description: "消息token",
      remark: "",
      required: true,
    },
  },
};

module.exports = model;
